import { request } from '@ruifox-cms/utils'

// 分页查询字典组
export function selectPageDictGroup(params) {
    return request({
        url: '/provider/api/dictionaryGroup/selectPage',
        method: 'get',
        params
    })
}
// 查询所有字典组
export function selectListDictGroup(params) {
    return request({
        url: '/provider/api/dictionaryGroup/selectList',
        method: 'get',
        params
    })
}
// 添加字典组
export function insertDictGroup(data) {
    return request({
        url: '/provider/api/dictionaryGroup/insert',
        method: 'post',
        data
    })
}
// 更新字典组
export function updateDictGroup(data) {
    return request({
        url: '/provider/api/dictionaryGroup/update',
        method: 'post',
        data
    })
}
// 删除字典组
export function deleteDictGroup(data) {
    return request({
        url: '/provider/api/dictionaryGroup/deleteList',
        method: 'post',
        data
    })
}

/***************************************字典项***********************/
// 分页查询字典项
export function selectPageDict(params) {
    return request({
        url: '/provider/api/dataDictionary/selectPage',
        method: 'get',
        params
    })
}
// 查询所有字典项
export function selectListDict(params) {
    return request({
        url: '/provider/api/dataDictionary/selectList',
        method: 'get',
        params
    })
}
// 添加字典项
export function insertDict(data) {
    return request({
        url: '/provider/api/dataDictionary/insert',
        method: 'post',
        data
    })
}
// 更新字典项
export function updateDict(data) {
    return request({
        url: '/provider/api/dataDictionary/update',
        method: 'post',
        data
    })
}
// 删除字典项
export function deleteDict(data) {
    return request({
        url: '/provider/api/dataDictionary/deleteList',
        method: 'post',
        data
    })
}